<include file="Public:header" />
<!--主体内容-->
<!--左边-->
<div class="centent_box">
    <include file="Public:left" />
    <!--右边-->
    <div class="centent_right_box">
        <div class="centent_right rightCon">
            <div class="Mtitle">
                <ul>
                    <li class="{$on[0]}" onclick="swit (0)"><span>房源列表</span></li>
                    <li class="{$on[1]}" onclick="swit (1)"><span>出售</span></li>
                    <li class="{$on[2]}" onclick="swit (2)"><span>出租</span></li>
                    <li class="{$on[3]}" onclick="swit (3)"><span>租售</span></li>
                    <li class="{$on[4]}" onclick="swit (4)"><span>我的房源</span></li>
                    <li class="{$on[5]}" onclick="swit (5)"><span>我的钥匙</span></li>
                    <li class="{$on[6]}" onclick="swit (6)"><span>我的维护</span></li>
                    <li class="{$on[7]}" onclick="swit (7)"><span>我的实勘</span></li>
                </ul>
                <button onclick="javascript:window.location.href='{:U('add')}'">录入房源</button>
            </div>
            <table class="tab_list">
                <tr>
                    <th style="width: 15%;padding-left: 20px">楼盘名称</th>
                    <th style="width: 7%">户型</th>
                    <th style="width: 7%">面积</th>
                    <th style="width: 8%">总价(万元)</th>
                    <th style="width: 8%">单价(元)</th>
                    <th style="width: 8%">租价(元)</th>
                    <th style="width: 8%">楼层</th>
                    <th style="width: 5%">朝向</th>
                    <th style="width: 8%">状态</th>
                    <th style="width: 8%">录入人</th>
                    <th style="width: 12%">时间</th>
                    <th style="width: 6%">属性</th>
                </tr>
                <volist name="list['list']" id='vo'>
                <tr ondblclick="edit ({$vo.id})">
                    <td style="padding-left: 20px">{$vo.title}</td>
                    <td>
                        {$vo.chamber}-{$vo.hall}-{$vo.kitchen}-{$vo.toilet}
                    </td>
                    <td>{$vo.area}㎡</td>
                    <td>{$vo.total_price}</td>
                    <td>{$vo.average_price}</td>
                    <td>{$vo.rental_price}</td>
                    <td>{$vo.floor_alias}</td>
                    <td>
                        <if condition="$vo.aspect eq 1">东</if>
                        <if condition="$vo.aspect eq 2">西</if>
                        <if condition="$vo.aspect eq 3">南</if>
                        <if condition="$vo.aspect eq 4">北</if>
                        <if condition="$vo.aspect eq 5">东西</if>
                        <if condition="$vo.aspect eq 6">南北</if>
                        <if condition="$vo.aspect eq 7">东南</if>
                        <if condition="$vo.aspect eq 8">东北</if>
                        <if condition="$vo.aspect eq 9">西南</if>
                        <if condition="$vo.aspect eq 10">西北</if>
                    </td>
                    <td class="green">{$status[$vo['status']]}</td>
                    <td>{$vo.username}</td>
                    <td class="dn">
                        {$vo.add_time}
                    </td>
                    <td>
                        <if condition="$vo.sell_type eq 1"><em style="color:red">出售</em></if>
                        <if condition="$vo.sell_type eq 2"><em style="color:green">出租</em></if>
                        <if condition="$vo.sell_type eq 3"><em style="color:blue">租售</em></if>
                    </td>
                </tr>
                </volist>
            </table>
            <div class="page">
                {$list.page}
            </div>
        </div>
    </div>
</div>
<script>
    function edit (id){
        window.location.href= "{:U('Used/edit')}&id="+id;
    }
    function swit (type){
        window.location.href = "{:U('index')}&sell="+type;
    }
</script>
<include file="Public:footer" />